//
//  LTChannelCell.m
//  wangyiNews08
//
//  Created by 123 on 16/3/12.
//  Copyright © 2016年 Tsr. All rights reserved.
//

#import "LTChannelCell.h"
#import "LTNewsController.h"
#import "LTNewsChannel.h"

@interface LTChannelCell()

@end

@implementation LTChannelCell
// 从xib或sb都会走这个方法
- (void)awakeFromNib {

//    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"News" bundle:nil];
//    
//    self.newsVC = sb.instantiateInitialViewController;
//    
//    [self addSubview:self.newsVC.view];
}

- (void)setNewsVC:(LTNewsController *)newsVC {
    _newsVC = newsVC;
    
    [self addSubview:newsVC.view];
}

// 布局子控件
- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.newsVC.view.frame = self.bounds;
    
}

@end
